 /**
 * jims
 */
 package com.jims.master.modules.sync.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

 /**
 * 医嘱主表Entity
 * @author ct
 * @version 2017-11-20
 */
public class OrderMain extends DataEntity<OrderMain> {
	
	private static final long serialVersionUID = 1L;
	private String visitId;		// 住院ID
	private String type;		// 医嘱类别代码
	private String orderRemark;		// 医嘱备注信息
	private Date startDate;		// 医嘱计划开始日期吋间
	private Date endDate;		// 医嘱计划结束日期时间
	private String deptIdMake;		// 医嘱开立科室
	private Date makeDate;		// 医嘱开立日期时间
	private String maker;		// 医嘱开立者签名
	private Date checkDate;		// 医嘱核对日期时间
	private String verifier;		// 医嘱审核人签名
	private Date verifyDate;		// 医嘱审核日期时间
	private String stopSign;		// 停止医嘱者签名
	private Date stopDate;		// 医嘱停止日期时间
	private String deptPerform;		// 医嘱执行科室
	private Date performDate;		// 医嘱执行日期时间
	private String performer;		// 医嘱执行者签名
	private String performState;		// 医嘱执行状态
	private String remover;		// 取消医嘱者签名
	private Date removeDate;		// 医嘱取消日期时间
	 private String itemCode;		// 医嘱项目类型代码
	 private String itemContent;		// 医嘱项目内容

	 public String getItemCode() {
		 return itemCode;
	 }

	 public void setItemCode(String itemCode) {
		 this.itemCode = itemCode;
	 }

	 public String getItemContent() {
		 return itemContent;
	 }

	 public void setItemContent(String itemContent) {
		 this.itemContent = itemContent;
	 }

	 public OrderMain() {
		super();
	}

	public OrderMain(String id){
		super(id);
	}

	@Length(min=0, max=64, message="住院ID长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=1, message="医嘱类别代码长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=100, message="医嘱备注信息长度必须介于 0 和 100 之间")
	public String getOrderRemark() {
		return orderRemark;
	}

	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=64, message="医嘱开立科室长度必须介于 0 和 64 之间")
	public String getDeptIdMake() {
		return deptIdMake;
	}

	public void setDeptIdMake(String deptIdMake) {
		this.deptIdMake = deptIdMake;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMakeDate() {
		return makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}
	
	@Length(min=0, max=50, message="医嘱开立者签名长度必须介于 0 和 50 之间")
	public String getMaker() {
		return maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}
	
	@Length(min=0, max=50, message="医嘱审核人签名长度必须介于 0 和 50 之间")
	public String getVerifier() {
		return verifier;
	}

	public void setVerifier(String verifier) {
		this.verifier = verifier;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getVerifyDate() {
		return verifyDate;
	}

	public void setVerifyDate(Date verifyDate) {
		this.verifyDate = verifyDate;
	}
	
	@Length(min=0, max=50, message="停止医嘱者签名长度必须介于 0 和 50 之间")
	public String getStopSign() {
		return stopSign;
	}

	public void setStopSign(String stopSign) {
		this.stopSign = stopSign;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStopDate() {
		return stopDate;
	}

	public void setStopDate(Date stopDate) {
		this.stopDate = stopDate;
	}
	
	@Length(min=0, max=64, message="医嘱执行科室长度必须介于 0 和 64 之间")
	public String getDeptPerform() {
		return deptPerform;
	}

	public void setDeptPerform(String deptPerform) {
		this.deptPerform = deptPerform;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPerformDate() {
		return performDate;
	}

	public void setPerformDate(Date performDate) {
		this.performDate = performDate;
	}
	
	@Length(min=0, max=50, message="医嘱执行者签名长度必须介于 0 和 50 之间")
	public String getPerformer() {
		return performer;
	}

	public void setPerformer(String performer) {
		this.performer = performer;
	}
	
	@Length(min=0, max=50, message="医嘱执行状态长度必须介于 0 和 50 之间")
	public String getPerformState() {
		return performState;
	}

	public void setPerformState(String performState) {
		this.performState = performState;
	}
	
	@Length(min=0, max=50, message="取消医嘱者签名长度必须介于 0 和 50 之间")
	public String getRemover() {
		return remover;
	}

	public void setRemover(String remover) {
		this.remover = remover;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRemoveDate() {
		return removeDate;
	}

	public void setRemoveDate(Date removeDate) {
		this.removeDate = removeDate;
	}
	
}